<div class="floatL leftBlock" style="min-width: 550px;">    
    <div class="addForm  radius5">
	<form method="post" action="<?php echo $this->createUrl('company/add'); ?>" class="form-stacked needValidate" enctype="multipart/form-data">
	    <label for="company[title]">Название фирмы:</label>
	    <input type="text" name="company[title]" value="<?php echo $model->getDbData('title'); ?>" class="span6 required" />
	    <?php if ($model->getId()) : ?>
    	    <input type="hidden" name="company[id]" value="<?php echo $model->getId(); ?>" />
	    <?php endif; ?>
	    <br/><br/>
	    <label for="company[activity]">Вид деятельности:</label>
	    <?php
	    echo CHtml::dropDownList('company[activity_id]', $model->getDbData('activity_id'), $activities);
	    ?>
	    <br/><br/>
	    <label for="company[address]">Адрес:</label>
	    <input type="text" name="company[address]" value="<?php echo $model->getDbData('address'); ?>" class="span6" />
	    <br/><br/>
	    <label for="company[info]">Краткая информация:</label>
	    <textarea name="company[info]" class="span11 required" ><?php echo $model->getDbData('info'); ?></textarea>
	    <br/><br/>
	    <label for="logo">Логотип:</label><br />
	    <img src="<?php echo $model->getLogo(); ?>?<?php echo time();?>" class="radius3" />
	    <br/><br/>
	    <input type="file" name="logo" />
	    <br/><br/><br/>
	    <input type="submit" name="doSave" class="btn primary" value="Сохранить">	    
	</form>
    </div>
</div>
<div class="rightBlock margLeft10 floatL">

</div>